You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR bumps the CLI to version 22.1.3, adding RFC 8707 --resource indicators to three OAuth2 commands, updating @appwrite.io/console to 15.1.0 (which provides the backing SDK support), and adding a "Press Enter to open browser" shortcut during device login.
lib/utils.ts: New openBrowser helper with platform-specific dispatch; the Windows path has a URL-quoting issue where manual double-quotes in the spawn args may cause libuv to double-encode them, passing a URL with literal \" characters to the browser.
lib/auth/login.ts: New listenForBrowserOpen with proper TTY / setRawMode guards, Ctrl+C forwarding, and integration into the device-login polling loop.
lib/commands/services/oauth-2.ts: --resource option added to authorize, createDeviceAuthorization, and createToken and forwarded as the final positional arg to the SDK methods.
Confidence Score: 4/5
Safe to merge after fixing the Windows URL quoting in openBrowser; all other changes are version bumps or well-guarded feature additions.
The Windows openBrowser path manually embeds literal double-quote characters inside a spawn argument, which causes libuv to double-encode them — the browser receives "https://..." with quote characters in the URL, silently breaking the 'Press Enter to open' feature on Windows. Everything else (TTY guards, setRawMode check, resource-indicator forwarding, lock file and install-script version bumps) looks correct.
lib/utils.ts — the Windows start URL argument needs the manual double-quoting removed.
Important Files Changed
Filename
Overview
lib/utils.ts
Adds openBrowser helper; Windows path manually embeds double-quotes in the URL spawn arg, which may be double-encoded by libuv on Windows.
lib/auth/login.ts
Adds listenForBrowserOpen with proper TTY/raw-mode guards and Ctrl+C handling; integrates cleanly into device login flow.
lib/commands/services/oauth-2.ts
Adds --resource option to three OAuth2 commands and forwards it to the SDK; requires the bumped @appwrite.io/console@15.1.0 to accept the new parameter.
lib/constants.ts
Version bump from 22.1.2 to 22.1.3.
package.json
Version bump and @appwrite.io/console dep updated to ^15.1.0.
install.sh
Version string updated to 22.1.3.
install.ps1
Download URLs updated to 22.1.3 binaries.
scoop/appwrite.config.json
Scoop manifest version and download URLs updated to 22.1.3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains updates to the SDK for version 22.1.3.
What's Changed
--resourceoption tooauth2 authorize,create-device-authorization, andcreate-tokenfor RFC 8707 resource indicators@appwrite.io/consoledependency to^15.1.0